import request from '@/utils/request'


// 用户登录
export const Login = function (data) {
	return request.post(`/api/doLogin`, data)
}

// 请求函数的公共部分
const requestFun = (url, data) => request.post(url, data)
// 图片和文件上传地址
export const uploadUrl = "/uploadfile"

// 押运员信息
export const query_escort = (data) => requestFun(`/api/Query_escort_information`, data)
export const add_escort = (data) => requestFun(`/api/Add_escort_information`, data)
export const delete_escort = (data) => requestFun(`/api/Delete_the_escort_information`, data)
export const modify_escort = (data) => requestFun(`/api/Modify_the_escort_information`, data)

// 驾驶员信息
export const query_driver = (data) => requestFun(`/api/Query_driver_information`, data)
export const add_driver = (data) => requestFun(`/api/Add_driver_information`, data)
export const delete_driver = (data) => requestFun(`/api/Delete_driver_information`, data)
export const update_driver = (data) => requestFun(`/api/Update_driver_information`, data)

// 考试管理
export const Examination_record_search = (data) => requestFun(`/api/Examination_record_search`, data)
export const Deletion_of_examination_record = (data) => requestFun(`/api/Deletion_of_examination_record`, data)
export const Update_examination_record = (data) => requestFun(`/api/Update_examination_record`, data)
export const Add_examination_record = (data) => requestFun(`/api/Add_examination_record`, data)

// 课程管理
export const Add_course = (data) => requestFun(`/api/Add_course`, data)
export const Update_course = (data) => requestFun(`/api/Update_course`, data)
export const Query_course = (data) => requestFun(`/api/Query_course`, data)

// 视频信息
export const Add_video_information = (data) => requestFun(`/api/Add_video_information`, data)
export const Delete_video_information = (data) => requestFun(`/api/Delete_video_information`, data)
export const Querying_Video_Information = (data) => requestFun(`/api/Querying_Video_Information`, data)
export const updatevideo_Information = (data) => requestFun(`/api/updatevideo_Information`, data)

// 文档信息
export const Add_document_information = (data) => requestFun(`/api/Add_document_information`, data)
export const Delete_document_information = (data) => requestFun(`/api/Delete_document_information`, data)
export const Query_document_information = (data) => requestFun(`/api/Query_document_information`, data)

// 行车日志
export const Add_traffic_log = (data) => requestFun(`/api/Add_traffic_log`, data)
export const Delete_traffic_log = (data) => requestFun(`/api/Delete_traffic_log`, data)
export const Query_traffic_log = (data) => requestFun(`/api/Query_traffic_log`, data)

// 出车提示
export const Added_exit_prompts = (data) => requestFun(`/api/Added_exit_prompts`, data)
export const Remove_exit_prompts = (data) => requestFun(`/api/Remove_exit_prompts`, data)
export const Query_the_exit_prompt = (data) => requestFun(`/api/Query_the_exit_prompt`, data)

// 获取出车提示信息
export const Query_chucheInfo = (data) => requestFun(`/api/Query_chucheInfo`, data)
export const update_chucheInfo = (data) => requestFun(`/api/update_chucheInfo`, data)

// 合同有效期提示内容
export const Query_hetongdataInfo = (data) => requestFun(`/api/Query_hetongdataInfo`, data)
export const update_hetongdataInfo = (data) => requestFun(`/api/update_hetongdataInfo`, data)

// 考试管理
export const Add_question_information = (data) => requestFun(`/api/Add_question_information`, data)
export const Delete_question_information = (data) => requestFun(`/api/Delete_question_information`, data)
export const Querying_question_Information = (data) => requestFun(`/api/Querying_question_Information`, data)
export const updatequestion_Information = (data) => requestFun(`/api/updatequestion_Information`, data)


// 出入库记录
export const Add_incoming_and_outgoing_records = (data) => requestFun(`/api/Add_incoming_and_outgoing_records`, data)
export const Delete_incoming_and_outgoing_records = (data) => requestFun(`/api/Delete_incoming_and_outgoing_records`, data)
export const Query_incoming_and_outgoing_records = (data) => requestFun(`/api/Query_incoming_and_outgoing_records`, data)


// 解析题目
export const jiexiquestion = (data) => requestFun(`/api/jiexiquestion`, data)
